package com.zwj.api.client;

import com.zwj.api.config.DefaultFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 张文接
 * @version 1.0
 * @createTime 2024/7/16 14:35
 */
@FeignClient(value = "user-service", configuration = DefaultFeignConfig.class)
public interface UserClient {
    @PutMapping("/money/deduct")
    void deductMoney(@RequestParam("pw") String pw, @RequestParam("amount") Integer amount);
}
